package com.cskaoyan.shopping.converter;


import com.cskaoyan.shopping.dal.entitys.ItemCat;

import com.cskaoyan.shopping.dto.ShoppingCategoriesDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

/**
 * @author :LuoXuXin
 * @version : $version
 * @date :Created in 2022/4/22   17:41
 * @description:
 * @return:
 */
@Mapper(componentModel = "spring")
public interface ICatCategoriesConverter {

    @Mappings({
            @Mapping(source = "icon",target = "iconUrl")
    })
    ShoppingCategoriesDto shoppingCategories(ItemCat itemCat);
}
